package me.zhengjie.controller.material;

import me.zhengjie.dao.MesSyncDao;
import me.zhengjie.server.MesSyncService;
import me.zhengjie.vo.mes.ResponseResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("material")
public class MesSyncController {

    @Resource
    private MesSyncService mesSyncService;

    @RequestMapping("sync")
    @ResponseBody
    public ResponseResult<?> materialSyncMES(@RequestBody ResponseResult<List<MesSyncDao>> result) {
       return mesSyncService.materialSyncMES(result);
    }

}
